<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
支付成功....
<span id="time">8</span>秒后自动返回主界面。页面无响应<a href="index.html" title="点击访问">点击返回主页</a>
<script type="text/javascript">
    delayURL();
    function delayURL() {
        var delay = document.getElementById("time").innerHTML;
        var t = setTimeout("delayURL()", 1000);
        if (delay > 0) {
            delay--;
            document.getElementById("time").innerHTML = delay;
        } else {
            clearTimeout(t);
            window.location.href = "/index.html";
        }
    }
    // $(document).ready(function(){
    //     var time12=$("#times").val();
    //     //$("#asd").html("距离结束还有:"+formatSeconds(time));
    //     alert(time12);
    //     var html="距离开始还有:";
    //     $("#asd").append(html);
    //     alert(html);
    // });
</script>
</body>
</html>